﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StyleMVVM.Utilities
{
	public interface ICacheManager
	{
		TimeSpan CollectionFrequency { get; set; }

		void Stop();

		void AddWithAbsoluteExpireTime(string key, object value, DateTimeOffset absoluteExpire);

		void AddWithSlidingExpireTime(string key, object value, TimeSpan slidingExpire);

		void RemoveFromCache(string key);

		object GetValue(string key);
	}
}